﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Pages.Account.LoginPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="../../Styles/MainStyles.css" rel="stylesheet" type="text/css" />    
</head>
<body>
    <form id="frmLogin" runat="server">   
            <fieldset class="login">
                <asp:Table ID="tblLogin" runat="server" CssClass="tblLogin roundCorners">
                    <asp:TableRow>
                        <asp:TableCell ColumnSpan="2">
                            <asp:HyperLink ID="hlLogin" runat="server" NavigateUrl="~/Pages/Account/Login.aspx" Target="_self" ToolTip="Go to DM4 Login page.">
                                <asp:Image ID="imgLogin" runat="server"  CssClass="img" AlternateText="logo" ImageUrl="~/Images/imgLogin.png" />
                            </asp:HyperLink>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell ColumnSpan="2">
                            <span class="failureNotification">
                                <asp:Literal ID="FailureText" runat="server"></asp:Literal>
                            </span>
                            <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="failureNotification"
                                ValidationGroup="LoginUserValidationGroup" />
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell CssClass="textright">
                            <asp:Label ID="lblServerName" runat="server" AssociatedControlID="ddlServerName">Server:</asp:Label>
                        </asp:TableCell>
                        <asp:TableCell CssClass="textleft">
                            &nbsp;<asp:DropDownList ID="ddlServerName" runat="server" CssClass="ddlServerName">
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="ServerNameRequired" runat="server" ControlToValidate="ddlServerName"
                                CssClass="failureNotification"   ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                        </asp:TableCell>
                    </asp:TableRow>                    
                    <asp:TableRow>
                        <asp:TableCell CssClass="textright">
                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Username:</asp:Label>
                        </asp:TableCell>
                        <asp:TableCell CssClass="textleft">
                            &nbsp;<asp:TextBox ID="UserName" runat="server" CssClass="textEntry"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                CssClass="failureNotification"    ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell CssClass="textright">
                            <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                        </asp:TableCell>
                        <asp:TableCell CssClass="textleft">
                            &nbsp;<asp:TextBox ID="Password" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                CssClass="failureNotification" ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            &nbsp;
                        </asp:TableCell>
                        <asp:TableCell CssClass="textright">
                            <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" ValidationGroup="LoginUserValidationGroup"
                                OnClick="LoginButtonClick" Style="margin: 15px 13px 7px 0px;" />
                        </asp:TableCell>
                    </asp:TableRow>
                </asp:Table>
            </fieldset>
        
    </form>
</body>
</html>
